<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="system" tagdir="/WEB-INF/tags/system/"%>
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="${ctxPath}/resource/front/css/body.css" rel="stylesheet" type="text/css" />
<link href="${ctxPath}/resource/front/css/order_ticket.css" rel="stylesheet" type="text/css" />
<link href="${ctxPath}/resource/front/css/aboutus.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>美瀛商旅网</title>
<script type="text/javascript">
	function mealOrder(url){
		var tips=false;
		if(!tips){
			tips="您确定要改签当前时间吗？";
		}
		if(confirm(tips)){
			location.href=url;
			alert("改签申请中");
		}
	}
</script>
</head>
<body>
<div id="col" style="width:1000px;margin:0px auto;">
<!--left-->
<div id="left">
	<system:frontLeft/>
</div>
<!--right-->
<div id="right">
  <div id="ticket_list">
	<ul class="ticket_list_title" style="font-size:14px "><font color="#798DAE">&gt;&gt;&nbsp;查询订单预订记录</font>
    </ul>
	
    <div id="order_list">
   	     <div id="content_c">
           <li class="w100"><span class="red">${msg}</span></li>
           <div id="clear"></div>
           </div>
    	<p><span style="color:#f63;">${fn:length(bOrders.list)}</span>条记录满足条件</p>
        <div id="check_flight">
            <div id="title_c">
                <li class="f140">订单号</li>
                <li class="f80">起飞-到达</li>
                <li class="f80">航班时间</li>
                <li class="f60">航班号</li>
                <li class="f80">状态</li>
                <li class="f60">订单总价</li>
                <li class="f80">订单日期</li>
                <li class="f30">操作</li>
                <div id="clear"></div>
            </div>

			<c:forEach var="bOrderItem" items="${bOrders.list}">
            <div id="content_c1">
                <li class="fc140"><a href="${ctxPath}/front/index.do?cmd=viewDetail&id=${bOrderItem.id}">${bOrderItem.orderNo}</a></li>
                <li class="fc100">
                <c:if test="${not empty bOrderItem.flights}">
						<c:forEach var="flight" items="${bOrderItem.flights}" >
							${flight.depTime}&nbsp;${flight.boardPointName}<br/>
							${flight.arrTime}&nbsp;${flight.offPointName}
						</c:forEach>
					</c:if>&nbsp;
                </li>
                <li class="fc80">
                	<c:if test="${not empty bOrderItem.flights}">
						<c:forEach var="flight" items="${bOrderItem.flights}" >
							${flight.depDay}
						</c:forEach>
					</c:if>&nbsp;
                </li>
                <li class="fc60">
                	<c:if test="${not empty bOrderItem.flights}">
						<c:forEach var="flight" items="${bOrderItem.flights}" >
							${flight.code}<br/>
						</c:forEach>
					</c:if>&nbsp;
					</li>
                <li class="fc80"><fmt:message key="bOrder.status${bOrderItem.status }"/></li>
                <li class="fc60"><span style=" color:#f36">¥${bOrderItem.allPrice}</span></li>
                <li class="fc80"><fmt:formatDate value="${bOrderItem.createTime}" pattern="yyyy-MM-dd"/> <br />
                <fmt:formatDate value="${bOrderItem.createTime}" pattern="HH:mm:ss"/></li>
                <li class="fc40">
                	<system:frontOperateTag value="${bOrderItem.status}" orderId="${bOrderItem.id}" showStyle="list"/>
                </li>
                <div id="clear"></div>
            </div>
            </c:forEach>
        </div>
        </div>
</div>
	<center>
		    <c:set var='queryResult' value='${bOrders}' scope="page"/>
  			<%@include file="/common/queryResult_Paging.jsp" %>
  			</center>
</div>
</div>
</body>
</html>

